<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<base href="<%=basePath%>">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title>购货入库 - 物流管理系统</title>
	<style media="all" type="text/css">@import "style/all.css";</style>
	<script type="text/javascript" src='script/common.js'></script>
	<script>
         function checkLogin(){
		     var num=document.getElementById("textNum").value;
		     var id=document.getElementById("listid").value;
			 if(num=="" || num==null){
			    alert("购货单号不能为空!");
			    return false;
			 }
			 window.location='getAllByOneOther/'+id;
		     return true;			
		 };
	</script>
</head>
<body style="background: none">
	<div class="top-bar">
		<h1>购货入库</h1>
		<div class="breadcrumbs">
			<div class="button-bar">
				<input type="button" name="help" value="帮助" class="button"  onclick="help('物流管理系统')"/>
				<input type="button" name="select" value="查询" class="button" onclick="return checkLogin()"/>
			</div>
			<a href="index.jsp" target="_top"  >首页</a> /
			<a href="depot_manage/index.jsp" target="_top"  >库房管理</a> 
		</div>
	</div>
    <form name="frmSelect" method="post" onsubmit="">
		<div class="select-bar">
		  <table class="select-table">
			<tr>
				<th>购货单号</th>
				<td><input type="text"  id="textNum" class="text" size="15"/><span style="color:red">*</span></td>
				<th></th>
				<td></td>
				<th></th>
				<td></td>
			</tr>
		  </table>
		</div>
	</form>
	<form name="frmIn" method="post" onsubmit="return checkIn()">
		<div class="table">
			<table class="listing form" cellpadding="0" cellspacing="0">
					<tr>
						<th class="first">购货单号</th>
						<th>商品编号</th>
						<th>商品名称</th>
						<th>应入库数量</th>
						
						<th>操作</th>
					</tr>
					<c:forEach items="${list }" var="list">
					<tr>			   
					   <td class="first"><input type="hidden" value="${list.id }" id="listid" />${list.id }</td>
					   <td>${list.productNum }</td>
					   <td>${list.productName }</td>
					   <td>${list.instoreage }</td>
					   
					   <td><a href="instroage/getAllByOne/${list.id}"><img title="入库" src="style/img/Fugue_1031.png"/></a></td>
					</tr>
					</c:forEach>

			</table>
		</form>
		<div class="pager">
			共59条记录 每页<input type="text" class="text" size="2" value="10"/>条
			第1页/共5页
			<a href="#">第一页</a>
			<a href="#">上一页</a>
			<a href="#">下一页</a>
			<a href="#">最后一页</a>
			转到<input type="text" class="text" size="1" value="1"/>页
			<input type="button" class="button" onclick="" value="GO"/>
        </div>
    </div>
	</div>
</body>
</html>
